<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html>
<html>
 <head>
  <title>添加活动借用申请</title>
  <t:base type="jquery,easyui,tools,DatePicker"></t:base>
 </head>
 <body>
  <t:formvalid formid="formobj" dialog="true" layout="table" action="activityBorrowController.do?addApply" tiptype="3" beforeSubmit="validateInfo">
		<input id="id" name="id" type="hidden" value=""> 
 		<input id="models" type="hidden" name="models">
		<input id="nums" type="hidden" name="nums">
		<table style=" " cellpadding="0" cellspacing="1" class="formtable">
				<tr>
					<td align="right">
						<label class="Validform_label">
							设备编号:
						</label>
					</td>
					<td class="value"> 
						<label>${apply.no }</label>
						<span class="Validform_checktip"></span>
						<label class="Validform_label" style="display: none;">设备编号</label>
					</td>
				</tr>	
				<tr>
					<td align="right">
						<label class="Validform_label">
							设备名称:
						</label>
					</td>
					<td class="value"> 
						<label>${apply.name }</label>
						<span class="Validform_checktip"></span>
						<label class="Validform_label" style="display: none;">使用日期</label>
						
					</td>
				</tr>	
				<tr>
					<td align="right">
						<label class="Validform_label">
							实验室:
						</label>
					</td>
					<td class="value"> 
						<label>${apply.lab.name }</label>	
						<span class="Validform_checktip"></span>
						<label class="Validform_label" style="display: none;">实验室</label>
					</td>
				</tr>	
				<tr>
					<td align="right">
						<label class="Validform_label">
							所属管理员:
						</label>
					</td>
					<td class="value">
						<label>${apply.holder.realName }</label>	
						<span class="Validform_checktip"></span>
						<label class="Validform_label" style="display: none;">所属管理员</label>
					</td>
				</tr>
				<tr>
					<td align="right">
						<label class="Validform_label">
							位置:
						</label>
					</td>
					<td class="value">
						<label>${apply.location }</label>
						<span class="Validform_checktip"></span>
						<label class="Validform_label" style="display: none;">位置</label>
					</td>
			 
				</tr>
			</table>
			<div style="text-align: center;">
				<button type="button" onclick="printPage(this)">打印</button>
			</div>
		</t:formvalid>
 </body>
 <script>
 	function printPage(obj){
 		$(obj).hide();
 		window.print();
 		$(obj).show();
 	}
 </script>